c3fe1cadc831977fe0344844eaddaa771bdb215d,opennms-model/src/main/java/org/opennms/netmgt/model/OnmsSnmpInterface.java,OnmsSnmpInterface,getCollectionType,#,304
Before Change
@Transient
public CollectionType getCollectionType() {
CollectionType maxCollType = CollectionType.NO_COLLECT;
for (Iterator<OnmsIpInterface> it = getIpInterfaces().iterator(); it.hasNext();) {
OnmsIpInterface ipIface = it.next();
if (ipIface.getIsSnmpPrimary() != null) {
maxCollType = maxCollType.max(ipIface.getIsSnmpPrimary());
}
After Change
@Transient
public CollectionType getCollectionType() {
CollectionType maxCollType = CollectionType.NO_COLLECT;
for (OnmsIpInterface ipIface : getIpInterfaces()) {
if (ipIface.getIsSnmpPrimary() != null) {
maxCollType = maxCollType.max(ipIface.getIsSnmpPrimary());
}